#ifndef _AGRV_FLASH_H_
#define _AGRV_FLASH_H_
#include "example.h"

#define  LIGHTINFO_FLASH_ADDRESS    0x800C8000   //800K(AG32VF407RGT6型号1024K Flash，最后100K给FPGA使用)
#define  FIRMWARE_PARAM             0x800C6000   //固件信息存储地址，存储固件版本号
#define  RF_PARAM                   0x800C7000   //射频参数存储
#define  DFU_APP_LOGIC_ADDRESS      0x800e7000   //logic 地址
#define  DFU_APP_CODE_ADDRESS       0x80010000   //APP code address

void     bootWriteMemory(uint32_t addr, uint16_t len, uint8_t *vals);
void     save_base_station_param(uint32_t addr, uint8_t *data);
void     save_rf_param(uint32_t addr, uint8_t *data);
void     save_station_ver(uint32_t addr, uint8_t *ver);
uint8_t  load_baseStation_id(uint32_t addr, uint8_t *data);

#endif